package edu.ycu.aladdin.web.dto.tripartite;

import com.alibaba.fastjson.JSONObject;
import edu.ycu.aladdin.web.dto.ThirdUserInfoObtainable;
import lombok.Data;

/**
 * @author <a href="mailto:wangruihuano@gmail.com">王瑞环</a>
 * @since 1.0
 */
@Data
public class BaiduUserInfo implements ThirdUserInfoObtainable {

    private String birthday;

    private String figure;

    private String education;

    private String sex;

    private String userdetail;

    private String is_realname;

    private String portrait;

    private String is_bind_mobile;

    private String userid;

    private String blood;

    private String trade;

    private String constellation;

    private String marriage;

    private String job;

    private String username;

    @Override
    public JSONObject getThirdUserInfo() {
        return (JSONObject) JSONObject.toJSON(this);
    }

    @Override
    public String getName2Show() {
        return username;
    }
}
